﻿using UnityEditor;
using UnityEngine;
using System.IO;

namespace Assets.Content.Editor
{
    class PackAssetBundles
    {
        [MenuItem("资源打包/全体打包")]
        private static void BuildAllAssetBundles()//进行打包
        {
            var path = Application.dataPath + "/AssetBundles/";
            if (!Directory.Exists(path))
                Directory.CreateDirectory(path);
            BuildPipeline.BuildAssetBundles(path, BuildAssetBundleOptions.None, BuildTarget.StandaloneWindows64);
        }
    }
}
